import request from "@/plugins/axios";
// 文章列表
export function listApi(data) {
  return request({
    url: "/admin/news/index",
    method: "post",
    data,
  });
}
// 文章添加
export function addApi(data) {
  return request({
    url: "/admin/news/create",
    method: "post",
    data,
  });
}
// 文章修改
export function saveApi(data) {
  return request({
    url: "/admin/news/save",
    method: "post",
    data,
  });
}
// 文章删除
export function delApi(data) {
  return request({
    url: "/admin/news/delete",
    method: "post",
    data,
  });
}
// 文章状态
export function stateApi(data) {
  return request({
    url: "/admin/news/state",
    method: "post",
    data,
  });
}
